package com.bookCodeDemo;

public class JavaThreadAnyWhere {
    public static void main(String[] args) {
        String threadName = Thread.currentThread().getName();
        System.out.println("this main method was by threde" + threadName);

    }

    static class Helpl implements Runnable {
        private static String maseeg = null;

        public Helpl(String maseeg) {
            this.maseeg = maseeg;
        }

        private void doSomedName(String maseeg) {
            String threadName = Thread.currentThread().getName();
            System.out.println("This doSomedName method was by threde " + threadName);
            System.out.println("Do masseg " + maseeg);
        }

        @Override
        public void run() {
            doSomedName(maseeg);
        }
    }
}
